package org.restly;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.Arrays;
import java.util.List;

/**
 * Aug 30, 2008, 2:43:38 PM
 *
 * @author <a href="http://restly.org/">Erik Beeson</a>
 */
@XStreamAlias("errors")
public class ErrorMessages {
	@XStreamImplicit(itemFieldName = "error")
	private List<String> errors;

	public ErrorMessages(String error) {
		this(Arrays.asList(error));
	}

	public ErrorMessages(List<String> errors) {
		this.errors = errors;
	}
}